# 01-异常演示.py
try:
    f = open('./666.txt','r',encoding="utf-8")
    print(f)
except:
    print('文件找不到！')
    f = open('./666.txt','w')
    f.write('789')
print(666)
'''
    捕获异常
    try:
        可能发生错误的代码
    execpt:
        如果出现异常执行的代码
'''
